package zFactory;

import bRM_LL73.BRM_LL73;
import pUNB.PUNB;
import tRM_LL73.TRM_LL73;
import tRM_LL73.TRM_LL73Factory;
import genArchi.Node;

public class NodeLiu73a02 implements NodeInterface {

	/**
	 * Attributes
	 */
	private PUNB processorUtilisation;
	private BRM_LL73 bound;
	private boolean enableCreate;
	
	/**
	 * Constructor
	 */
	public NodeLiu73a02(PUNB processorUtilisation, BRM_LL73 bound, boolean enableCreate) 
	{
		this.processorUtilisation = processorUtilisation;
		this.bound = bound;
		this.enableCreate = enableCreate;
	}
	
	@Override
	public Node createNode() 
	{
		/**/
		TRM_LL73 _liu73a02 = TRM_LL73Factory.eINSTANCE.createTRM_LL73();

		/**/
		_liu73a02.setBound(this.bound);
		_liu73a02.setPU(this.processorUtilisation);

		/**/
		return _liu73a02;	
	}

	@Override
	public String getNodeName() 
	{
		return "tRM_LL73.impl.TRM_LL73Impl";
	}

	@Override
	public void update(Node node) 
	{
		TRM_LL73 _liu73a02 = (TRM_LL73)node;
		
		/**/
		if (this.processorUtilisation != null) _liu73a02.setPU(this.processorUtilisation);
		if (this.bound != null) _liu73a02.setBound(this.bound);
	}

	@Override
	public boolean isEnable() 
	{
		return this.enableCreate;
	}

}
